<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="com.blockchain.console.servlets.trading.jjfq.JyfqList"%>
<%@page import="com.blockchain.console.service.trading.entity.XlbEntity"%>
<%@page import="com.blockchain.console.service.trading.entity.JyfqEntity"%>
<%@page import="com.blockchain.console.servlets.trading.jysc.AddJysc"%>
<%@page import="com.blockchain.common.enums.IsPass"%>
<html>
<head>
<%@include file="/WEB-INF/include/meta.jsp"%>
<%@include file="/WEB-INF/include/style.jsp"%>
</head>
<%
CURRENT_CATEGORY="JYGL";
CURRENT_SUB_CATEGORY="SCGL";
XlbEntity[] xlb =(XlbEntity[])request.getAttribute("xlb");
JyfqEntity[] fq=(JyfqEntity[])request.getAttribute("fq");
%>
<body>
	<%@include file="/WEB-INF/include/header.jsp"%>
	<div class="w_main">
	<div class="main clearfix">  
    <div class="wrap">
        <div class="r_main">
            <div class="home_main">
            	<div class="box box1 mb15">
                	<div class="atil">
                    	<h3>添加交易市场</h3>
                  </div>
                    <div class="con">
                    <div class="clear"></div>
                    <form action="<%=controller.getURI(request, AddJysc.class)%>" method="post"  class="form1">
                    <ul class="cell yw_jcxx">
                    <li>
                        <div class="til"><span class="red">&nbsp;</span></div>
                        <div class="info orange">
                        <%StringHelper.filterHTML(out, controller.getPrompt(request, response, PromptLevel.ERROR));%>
                        </div>
                        <div class="clear"></div>
                    </li>
                     <li>
                        <div class="til"><span class="red">*</span>市场分区：</div>
                        <div class="info orange">
                        	<select name="fqid" class="yhgl_sel">
                                <%if(fq!=null){for (JyfqEntity s: fq) {%>
								<option value="<%=s.id%>" <%if (s.id==IntegerParser.parse(request.getParameter("fqid"))) {%> selected="selected" <%}%>><%StringHelper.filterHTML(out,s.fqmc);%>（<%StringHelper.filterHTML(out,s.fqywm);%>）</option>
								<%}}%>
                            </select>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    
                     <li>
                        <div class="til"><span class="red">*</span>买方币种：</div>
                        <div class="info orange">
                        	<select name="mr_bz" class="yhgl_sel">
                                <%if(xlb!=null){for (XlbEntity s: xlb) {%>
								<option value="<%=s.id%>" <%if (s.id==IntegerParser.parse(request.getParameter("mr_bz"))) {%> selected="selected" <%}%>><%StringHelper.filterHTML(out,s.zwm);%>（<%StringHelper.filterHTML(out,s.ywjc);%>）</option>
								<%}}%>
                            </select>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                     <li>
                        <div class="til"><span class="red">*</span>卖方币种 ：</div>
                        <div class="info orange">
                        	<select name="mc_bz" class="yhgl_sel">
                                <%if(xlb!=null){for (XlbEntity s: xlb) {if(s.id>0){%>
								<option value="<%=s.id%>" <%if (s.id==IntegerParser.parse(request.getParameter("mc_bz"))) {%> selected="selected" <%}%>><%StringHelper.filterHTML(out,s.zwm);%>（<%StringHelper.filterHTML(out,s.ywjc);%>）</option>
								<%}}}%>
                            </select>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                     <li>
                        <div class="til"><span class="red">*</span>价格小数位数：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser required isint" name="xsws" value="<%StringHelper.filterHTML(out,request.getParameter("xsws"));%>" />
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <li>
                        <div class="til"><span class="red">*</span>数量小数位数：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser required isint" name="slxsws" value="<%StringHelper.filterHTML(out,request.getParameter("slxsws"));%>" />
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <li>
                        <div class="til"><span class="red">*</span>买入手续费率：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser required " name="mr_sxf" value="<%StringHelper.filterHTML(out,request.getParameter("mr_sxf"));%>"/>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <li>
                        <div class="til"><span class="red">*</span>卖出手续费率：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser required " name="mc_sxf" value="<%StringHelper.filterHTML(out,request.getParameter("mc_sxf"));%>"/>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    <li>
                        <div class="til"><span class="red">*</span>买入最小交易价：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser required " name="mr_zxj" value="<%StringHelper.filterHTML(out,request.getParameter("mr_zxj"));%>"/>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    
                    <li>
                        <div class="til"><span class="red">*</span>买入最大交易价：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser required " name="mr_zdj" value="<%StringHelper.filterHTML(out,request.getParameter("mr_zdj"));%>"/>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    
                    <li>
                        <div class="til"><span class="red">*</span>卖出最小交易价：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser required " name="mc_zxj" value="<%StringHelper.filterHTML(out,request.getParameter("mc_zxj"));%>"/>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    
                     <li>
                        <div class="til"><span class="red">*</span>卖出最大交易价：</div>
                        <div class="info orange">
                        	<input type="text" class="text yhgl_ser required " name="mc_zdj" value="<%StringHelper.filterHTML(out,request.getParameter("mc_zdj"));%>"/>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    
                     <li>
                        <div class="til"><span class="red">*</span>是否开启交易：</div>
                        <div class="info orange">
                        	<select name="sfkqjy" class="yhgl_sel">
                                <%for (IsPass s : IsPass.values()) {%>
								<option value="<%=s.name()%>" <%if (s.name().equals(request.getParameter("sfkqjy"))) {%> selected="selected" <%}%>><%=s.getName()%></option>
								<%}%>
                            </select>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    
                    <li>
                        <div class="til"><span class="red">*</span>是否显示：</div>
                        <div class="info orange">
                        	<select name="sfxs" class="yhgl_sel">
                                <%for (IsPass s : IsPass.values()) {%>
								<option value="<%=s.name()%>" <%if (s.name().equals(request.getParameter("sfxs"))) {%> selected="selected" <%}%>><%=s.getName()%></option>
								<%}%>
                            </select>
                        	 <p tip></p>
							<p errortip class="" style="display: none"></p>
                        </div>
                        <div class="clear"></div>
                    </li>
               		</ul>
                    <div class="tc w220 pt20"><button type="submit" class="btn4 mr30 sumbitForme" style="cursor: pointer;" fromname="form1">确认</button>
                    	<a href="<%=controller.getURI(request, JyfqList.class) %>" class="btn4">返回</a>
                    </div>
                	<div class="clear"></div>
                    </form>
                  </div>
                </div>
              <div class="box2 clearfix"></div>
            </div>
        </div>   
    </div>
 	<%@include file="/WEB-INF/include/left.jsp" %>
	</div>
	</div>
	<%@include file="/WEB-INF/include/footer.jsp"%>
	<%@include file="/WEB-INF/include/script.jsp"%> 
	<script type="text/javascript" src="<%=controller.getStaticPath(request)%>/js/validation.js"></script>
</body>
</html>